package com.sj.service;

import com.sj.entity.Image;
import com.sj.mapper.ImageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageService {
    @Autowired
    private ImageMapper imageMapper;

    public Image getOne(Integer id) {
        return imageMapper.getOne(id);
    }

    public List<Image> getAll() {
        return imageMapper.getAll();
    }

    public Integer insert(Image image) {
        return imageMapper.insert(image);
    }
}
